<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- //三种创建元素的区别 -->
    <script>
        //1.document.write() 创建元素 如果页面文档流加载完毕,再调用这句话会导致页面重绘

        //2.innerHTML 创建元素效率高采用数组形式拼接,不要字符串拼接

        //3.document.createElement,效率低一点,但是结构更清晰
    </script>
</body>
</html>